#include"list1.cpp"
Complex::Complex(float r, float i)
{
	real = r;
	imag = i;
}
void Complex::print()
{
	cout << real;
	if (imag != 0)
	{
		if (imag > 0)
			cout << "+";
		cout << imag;
	}
	cout << endl;
}
Complex operator+(const Complex& a, const Complex& b)
{
	Complex temp;
	temp.real = a.real + b.real;
	temp.imag = a.imag + b.imag;
	return temp;
}
Complex operator+(const Complex& a, float f)
{
	return Complex(a.real + f, a.imag + f);
}
Complex operator++(Complex& a)
{
	++a.real;
	++a.imag;
	return a;
}